package com.zhiliao.state.demo4;

public class InitOrderState extends OrderState{
    public InitOrderState(int state) {
        super(state);
    }

    @Override
    public boolean checkState() {
        context.setOrderState(new DispatchOrderState(401));
        return context.getOrderState().getState() == 401;
    }
}
